import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Allinfo from './views/Allinfo.vue'
import city from './views/center/city.vue'
import brand from './views/center/brand.vue'
import merch from './views/center/merch.vue'
import merchFrom from './views/center/merchFrom.vue'
import merchEdit from './views/center/merchEdit.vue'
import store from './views/center/store.vue'
import storeFrom from './views/center/storeFrom.vue'
import storeEdit from './views/center/storeEdit.vue'
import User from './views/setting/User' // 用户管理
import NodeManagement from './views/setting/Node' // 用户管理
import Role from './views/setting/Role' // 角色管理
import Log from './views/setting/Log' // 登入日志
import Setting from './views/setting/Setting' // 会员设置


import salesclerkManagement from './views/salesclerkManagement/salesclerk-management' // 会员设置
import fa from "element-ui/src/locale/lang/fa";

let routes = [
	{
		path: '/login',
		component: Login,
		name: '',
		hidden: true
	},
	{
		path: '/404',
		component: NotFound,
		name: '',
		hidden: true
	},
	// {
	//     path: '/',
	//     component: Home,
	//     name: '商城概述',
	//     iconCls: 'fa fa-dashboard',
	//     leaf: true,//只有一个节点
	//     children: [
	//         { path: '/allinfo', component: Allinfo, name: '仪表盘' }
	//     ]
	// },
	{
		path: '/',
		component: Home,
		name: '系统管理',
		iconCls: 'fa fa-map-pin',
		leaf: true,//只有一个节点
		children: [
			{ path: '/city', component: city, name: '城市管理' }
		]
	},
	{
		path: '/',
		component: Home,
		name: '系统管理',
		iconCls: 'fa fa-bookmark',
		leaf: true,//只有一个节点
		children: [
			{ path: '/brand', component: brand, name: '品牌管理' }
		]
	},
	{
		path: '/',
		component: Home,
		name: '系统管理',
		iconCls: 'fa fa-bank',
		leaf: true,//只有一个节点
		children: [
			{ path: '/merch', component: merch, name: '商户管理' }
		]
	},
	{
		path: '/',
		component: Home,
		name: '系统管理',
		iconCls: 'fa fa-home',
		leaf: true,//只有一个节点
		children: [
			{ path: '/store', component: store, name: '门店管理' }
		]
	},
	{
		path: '/',
		component: Home,
		name: '系统管理',
		iconCls: 'fa fa-user',
		leaf: true,//只有一个节点
		children: [
			{ path: '/salesclerk-management', component: salesclerkManagement, name: '店员管理'},
			{ path: '/merchFrom', component: merchFrom, name: '添加商户' ,hidden: true},
			{ path: '/merchEdit', component: merchEdit, name: '编辑商户' ,hidden: true},
			{ path: '/storeFrom', component: storeFrom, name: '添加门店' ,hidden: true},
			{ path: '/storeEdit', component: storeEdit, name: '编辑门店' ,hidden: true}
		]
	},
	// {
	// 	path: '/',
	// 	component: Home,
	// 	name: '中心管理',
	// 	iconCls: 'fa fa-university',//图标样式class
	// 	children: [
	// 		{ path: '/city', component: city, name: '城市管理' },
	// 		{ path: '/brand', component: brand, name: '品牌管理' },
	// 		{ path: '/merch', component: merch, name: '商户管理' },
	// 		{ path: '/store', component: store, name: '门店管理' },
	// 		{ path: '/salesclerk-management', component: salesclerkManagement, name: '店员管理'},
	// 		{ path: '/merchFrom', component: merchFrom, name: '添加商户' ,hidden: true},
	// 		{ path: '/merchEdit', component: merchEdit, name: '编辑商户' ,hidden: true},
	// 		{ path: '/storeFrom', component: storeFrom, name: '添加门店' ,hidden: true},
	// 		{ path: '/storeEdit', component: storeEdit, name: '编辑门店' ,hidden: true}
	// 	]
	// },
	{
		path: '/',
		component: Home,
		name: '系统管理',
		iconCls: 'fa fa-unlock-alt',
		leaf: true,//只有一个节点
		children: [
			{ path: '/user', component: User, name: '账号管理' }
		]
	},
	{
		path: '/',
		component: Home,
		name: '系统管理',
		iconCls: 'fa fa-group',
		leaf: true,//只有一个节点
		children: [
			{ path: '/role', component: Role, name: '角色管理' }
		]
	},
	{
		path: '/',
		component: Home,
		name: '系统管理',
		iconCls: 'fa fa-plus-square',
		leaf: true,//只有一个节点
		children: [
			{ path: '/node', component: NodeManagement, name: '节点管理' },
			{ path: '/log', component: Log, name: '登入日志',hidden: true },
		]
	},
	// {
	// 	path: '/',
	// 	component: Home,
	// 	name: '系统管理',
	// 	iconCls: 'fa fa-cogs',//图标样式class
	// 	children: [
	// 		{ path: '/user', component: User, name: '账号管理' },
	// 		{ path: '/node', component: NodeManagement, name: '节点管理' },
	// 		{ path: '/role', component: Role, name: '角色管理' },
	// 		{ path: '/log', component: Log, name: '登入日志' },
	// 	]
	// },
	// 头像那边设置 那个按钮
	{
		path: '/',
		component: Home,
		name: '设置',
		hidden: true,
		leaf: true,
		children: [
			{ path: '/setting', component: Setting, name: '设置' }
		]
	},
	{
		path: '*',
		hidden: true,
		redirect: { path: '/404' }
	}
];

export default routes;
